<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Paho C++: mqtt::buffer_view&lt; T &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pahologo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Paho C++
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">The Paho MQTT C++ Client Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classmqtt_1_1buffer__view.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classmqtt_1_1buffer__view-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">mqtt::buffer_view&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A reference to a contiguous sequence of items, with no ownership.  
 <a href="classmqtt_1_1buffer__view.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="buffer__view_8h_source.html">buffer_view.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a37ac7dab66c97644d6d4d5818b1c908a"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmqtt_1_1buffer__view.html#a37ac7dab66c97644d6d4d5818b1c908a">value_type</a> = T</td></tr>
<tr class="memdesc:a37ac7dab66c97644d6d4d5818b1c908a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type of items to be held in the queue.  <a href="#a37ac7dab66c97644d6d4d5818b1c908a">More...</a><br/></td></tr>
<tr class="separator:a37ac7dab66c97644d6d4d5818b1c908a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c39e021b83c9fcab420b785664201f8"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmqtt_1_1buffer__view.html#a3c39e021b83c9fcab420b785664201f8">size_type</a> = size_t</td></tr>
<tr class="memdesc:a3c39e021b83c9fcab420b785664201f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type used to specify number of items in the container.  <a href="#a3c39e021b83c9fcab420b785664201f8">More...</a><br/></td></tr>
<tr class="separator:a3c39e021b83c9fcab420b785664201f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad7ea9253d467d86cfe815e3d8d440c0e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmqtt_1_1buffer__view.html#ad7ea9253d467d86cfe815e3d8d440c0e">buffer_view</a> (const <a class="el" href="classmqtt_1_1buffer__view.html#a37ac7dab66c97644d6d4d5818b1c908a">value_type</a> *<a class="el" href="classmqtt_1_1buffer__view.html#a6bb2e5e49c2ab3c2a6ede68a06062c7f">data</a>, <a class="el" href="classmqtt_1_1buffer__view.html#a3c39e021b83c9fcab420b785664201f8">size_type</a> n)</td></tr>
<tr class="memdesc:ad7ea9253d467d86cfe815e3d8d440c0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a buffer view.  <a href="#ad7ea9253d467d86cfe815e3d8d440c0e">More...</a><br/></td></tr>
<tr class="separator:ad7ea9253d467d86cfe815e3d8d440c0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa55bf60e398c1c166737b236d9fc47ff"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmqtt_1_1buffer__view.html#aa55bf60e398c1c166737b236d9fc47ff">buffer_view</a> (const std::basic_string&lt; <a class="el" href="classmqtt_1_1buffer__view.html#a37ac7dab66c97644d6d4d5818b1c908a">value_type</a> &gt; &amp;<a class="el" href="classmqtt_1_1buffer__view.html#a6b3872177aba1b14a9177251d3548486">str</a>)</td></tr>
<tr class="memdesc:aa55bf60e398c1c166737b236d9fc47ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a buffer view to a whole string.  <a href="#aa55bf60e398c1c166737b236d9fc47ff">More...</a><br/></td></tr>
<tr class="separator:aa55bf60e398c1c166737b236d9fc47ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bb2e5e49c2ab3c2a6ede68a06062c7f"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classmqtt_1_1buffer__view.html#a37ac7dab66c97644d6d4d5818b1c908a">value_type</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmqtt_1_1buffer__view.html#a6bb2e5e49c2ab3c2a6ede68a06062c7f">data</a> () const </td></tr>
<tr class="memdesc:a6bb2e5e49c2ab3c2a6ede68a06062c7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a pointer the first item in the view.  <a href="#a6bb2e5e49c2ab3c2a6ede68a06062c7f">More...</a><br/></td></tr>
<tr class="separator:a6bb2e5e49c2ab3c2a6ede68a06062c7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff29a16c497207e9c9e173c3dd2f979c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmqtt_1_1buffer__view.html#a3c39e021b83c9fcab420b785664201f8">size_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmqtt_1_1buffer__view.html#aff29a16c497207e9c9e173c3dd2f979c">size</a> () const </td></tr>
<tr class="memdesc:aff29a16c497207e9c9e173c3dd2f979c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the number of items in the view.  <a href="#aff29a16c497207e9c9e173c3dd2f979c">More...</a><br/></td></tr>
<tr class="separator:aff29a16c497207e9c9e173c3dd2f979c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3c66969bfa91e9eddd41dce566f84c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmqtt_1_1buffer__view.html#a3c39e021b83c9fcab420b785664201f8">size_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmqtt_1_1buffer__view.html#aa3c66969bfa91e9eddd41dce566f84c5">length</a> () const </td></tr>
<tr class="memdesc:aa3c66969bfa91e9eddd41dce566f84c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the number of items in the view.  <a href="#aa3c66969bfa91e9eddd41dce566f84c5">More...</a><br/></td></tr>
<tr class="separator:aa3c66969bfa91e9eddd41dce566f84c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2dac1864e60040f5c4230d2e555f019"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classmqtt_1_1buffer__view.html#a37ac7dab66c97644d6d4d5818b1c908a">value_type</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmqtt_1_1buffer__view.html#ad2dac1864e60040f5c4230d2e555f019">operator[]</a> (size_t i) const </td></tr>
<tr class="memdesc:ad2dac1864e60040f5c4230d2e555f019"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access an item in the view.  <a href="#ad2dac1864e60040f5c4230d2e555f019">More...</a><br/></td></tr>
<tr class="separator:ad2dac1864e60040f5c4230d2e555f019"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b3872177aba1b14a9177251d3548486"><td class="memItemLeft" align="right" valign="top">std::basic_string&lt; <a class="el" href="classmqtt_1_1buffer__view.html#a37ac7dab66c97644d6d4d5818b1c908a">value_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmqtt_1_1buffer__view.html#a6b3872177aba1b14a9177251d3548486">str</a> () const </td></tr>
<tr class="memdesc:a6b3872177aba1b14a9177251d3548486"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a copy of the view as a string.  <a href="#a6b3872177aba1b14a9177251d3548486">More...</a><br/></td></tr>
<tr class="separator:a6b3872177aba1b14a9177251d3548486"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0f2c95ff2ae1b87cac73e7ed4bc85aa"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmqtt_1_1buffer__view.html#ad0f2c95ff2ae1b87cac73e7ed4bc85aa">to_string</a> () const </td></tr>
<tr class="memdesc:ad0f2c95ff2ae1b87cac73e7ed4bc85aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a copy of the view as a string.  <a href="#ad0f2c95ff2ae1b87cac73e7ed4bc85aa">More...</a><br/></td></tr>
<tr class="separator:ad0f2c95ff2ae1b87cac73e7ed4bc85aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br/>
class mqtt::buffer_view&lt; T &gt;</h3>

<p>A reference to a contiguous sequence of items, with no ownership. </p>
<p>This simply contains a pointer to a const array of items, and a size. This is a similar, but simplified version of the std::string_view class(es) in the C++17 standard. </p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a3c39e021b83c9fcab420b785664201f8"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classmqtt_1_1buffer__view.html">mqtt::buffer_view</a>&lt; T &gt;::<a class="el" href="classmqtt_1_1buffer__view.html#a3c39e021b83c9fcab420b785664201f8">size_type</a> =  size_t</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The type used to specify number of items in the container. </p>

</div>
</div>
<a class="anchor" id="a37ac7dab66c97644d6d4d5818b1c908a"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classmqtt_1_1buffer__view.html">mqtt::buffer_view</a>&lt; T &gt;::<a class="el" href="classmqtt_1_1buffer__view.html#a37ac7dab66c97644d6d4d5818b1c908a">value_type</a> =  T</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The type of items to be held in the queue. </p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad7ea9253d467d86cfe815e3d8d440c0e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmqtt_1_1buffer__view.html">mqtt::buffer_view</a>&lt; T &gt;::<a class="el" href="classmqtt_1_1buffer__view.html">buffer_view</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classmqtt_1_1buffer__view.html#a37ac7dab66c97644d6d4d5818b1c908a">value_type</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classmqtt_1_1buffer__view.html#a3c39e021b83c9fcab420b785664201f8">size_type</a>&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructs a buffer view. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>The data pointer </td></tr>
    <tr><td class="paramname">n</td><td>The number of items </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa55bf60e398c1c166737b236d9fc47ff"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmqtt_1_1buffer__view.html">mqtt::buffer_view</a>&lt; T &gt;::<a class="el" href="classmqtt_1_1buffer__view.html">buffer_view</a> </td>
          <td>(</td>
          <td class="paramtype">const std::basic_string&lt; <a class="el" href="classmqtt_1_1buffer__view.html#a37ac7dab66c97644d6d4d5818b1c908a">value_type</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructs a buffer view to a whole string. </p>
<p>This the starting pointer and length of the whole string. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td>The string. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a6bb2e5e49c2ab3c2a6ede68a06062c7f"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classmqtt_1_1buffer__view.html#a37ac7dab66c97644d6d4d5818b1c908a">value_type</a>* <a class="el" href="classmqtt_1_1buffer__view.html">mqtt::buffer_view</a>&lt; T &gt;::data </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets a pointer the first item in the view. </p>
<dl class="section return"><dt>Returns</dt><dd>A const pointer the first item in the view. </dd></dl>

</div>
</div>
<a class="anchor" id="aa3c66969bfa91e9eddd41dce566f84c5"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmqtt_1_1buffer__view.html#a3c39e021b83c9fcab420b785664201f8">size_type</a> <a class="el" href="classmqtt_1_1buffer__view.html">mqtt::buffer_view</a>&lt; T &gt;::length </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the number of items in the view. </p>
<dl class="section return"><dt>Returns</dt><dd>The number of items in the view. </dd></dl>

</div>
</div>
<a class="anchor" id="ad2dac1864e60040f5c4230d2e555f019"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classmqtt_1_1buffer__view.html#a37ac7dab66c97644d6d4d5818b1c908a">value_type</a>&amp; <a class="el" href="classmqtt_1_1buffer__view.html">mqtt::buffer_view</a>&lt; T &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access an item in the view. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The index of the item. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A const reference to the requested item. </dd></dl>

</div>
</div>
<a class="anchor" id="aff29a16c497207e9c9e173c3dd2f979c"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmqtt_1_1buffer__view.html#a3c39e021b83c9fcab420b785664201f8">size_type</a> <a class="el" href="classmqtt_1_1buffer__view.html">mqtt::buffer_view</a>&lt; T &gt;::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the number of items in the view. </p>
<dl class="section return"><dt>Returns</dt><dd>The number of items in the view. </dd></dl>

</div>
</div>
<a class="anchor" id="a6b3872177aba1b14a9177251d3548486"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::basic_string&lt;<a class="el" href="classmqtt_1_1buffer__view.html#a37ac7dab66c97644d6d4d5818b1c908a">value_type</a>&gt; <a class="el" href="classmqtt_1_1buffer__view.html">mqtt::buffer_view</a>&lt; T &gt;::str </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets a copy of the view as a string. </p>
<dl class="section return"><dt>Returns</dt><dd>A copy of the view as a string. </dd></dl>

</div>
</div>
<a class="anchor" id="ad0f2c95ff2ae1b87cac73e7ed4bc85aa"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="classmqtt_1_1buffer__view.html">mqtt::buffer_view</a>&lt; T &gt;::to_string </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets a copy of the view as a string. </p>
<dl class="section return"><dt>Returns</dt><dd>A copy of the view as a string. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/mqtt/<a class="el" href="buffer__view_8h_source.html">buffer_view.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>mqtt</b></li><li class="navelem"><a class="el" href="classmqtt_1_1buffer__view.html">buffer_view</a></li>
    <li class="footer">Generated on Sun Jul 23 2017 10:24:29 for Paho C++ by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
